<ul class="layui-nav" lay-filter="navbarl">
    <li class="layui-nav-item #(navIndex??'')"><a href="/">主页</a></li>
    <li class="layui-nav-item">
        <a href="javascript:;">庄云服务</a>
        <dl class="layui-nav-child"> <!-- 二级菜单 -->
            <dd><a href="https://zhuangcloud.cn/">庄云短网址</a></dd>
            <dd><a href="https://zhuangcloud.cn/longman">庄云朗文自动答题</a></dd>
            <dd><a href="https://zhuangcloud.cn/pan">庄云盘</a></dd>
            <dd><a href="https://git.yangzhizhuang.net/">庄Git</a></dd>
        </dl>
    </li>
    #if(user)
    <li class="layui-nav-item #(navHome??'')" style="float:right"><a href="/home">#(user.username)</a></li>
    <li class="layui-nav-item" style="float:right"><a href="/logout">登出</a></li>
    #else
    <li class="layui-nav-item #(navLogin??'')" style="float:right"><a href="/cas?redirect=http%3a%2f%2fjavaweb.yangzhizhuang.net%2fcas%2fcookie">登陆</a></li>
    <li class="layui-nav-item #(navRegister??'')" style="float:right"><a href="/register">注册</a></li>
    #end
</ul>